#ifndef FPLAYER_ANDROIDAUDIOCAPTURE_H
#define FPLAYER_ANDROIDAUDIOCAPTURE_H

#include "Capture.h"
#include "android/JNIHelper.h"

/**
 * author: x-fan
 * date: 2024/1/12
 * desc: Android音频的采集
 */
class AndroidAudioCapture : public ICapture {
private:
  //Java类
  jclass _CaptureClass = nullptr;
  //Java 音频采集对象
  jobject _CaptureObj = nullptr;

public:
  AndroidAudioCapture(AudioDevice *pCapDev);

  virtual ~AndroidAudioCapture() noexcept;

  void startCapture() override;

  void stopCapture() override;

  int32_t capacity() override;

  const char *getClassName() override;
};


#endif //FPLAYER_ANDROIDAUDIOCAPTURE_H
